﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using MSBIHelper.Helper;
namespace MSBIHelper.UI
{
    public partial class Frm_Configuration : Form
    {
        public Frm_Configuration()
        {
            InitializeComponent();
        }

        private void button11_Click(object sender, EventArgs e)
        {
            Util.work(new ParameterObject() {_isFolder= chkboxChooseFolder.Checked
            ,_varNameValue = rtbMsg.Text,_rtb = rtbMsg
            }, SSISHelper.Config_UpdateVariables);
        }

        private void button13_Click(object sender, EventArgs e)
        {
            Util.work(true, chkboxChooseFolder.Checked, rtbMsg, SSISHelper.Config_AddConfigFile);
        }

        private void button14_Click(object sender, EventArgs e)
        {
            Util.work(false, chkboxChooseFolder.Checked, rtbMsg, SSISHelper.Config_AddConfigFile);
        }

        private void button14_Click_1(object sender, EventArgs e)
        {
            Util.work(new ParameterObject()
            {
                _isFolder = chkboxChooseFolder.Checked
                ,_varNameValue = rtbMsg.Text,_rtb = rtbMsg
            }, SSISHelper.Config_GenerateBatch);
        }
    }
}
